package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.corpcredit.webapp.action.BasePage;
import com.corpcredit.webapp.util.FacesUtils;
import com.corpcredit.model.Jbqk;
import com.corpcredit.model.Jrjgsxdj;
import com.corpcredit.service.GenericManager;
import com.corpcredit.service.LookupManager;

public class JrjgsxdjList extends BasePage implements Serializable {
    private LookupManager lookupManager;

    private Jbqk jbqk;

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    public void setLookupManager( LookupManager lookupManager )
    {
        this.lookupManager = lookupManager;
    }

    public JrjgsxdjList() {
        setSortColumn("id"); // sets the default sort column
    }
    
    public List getJrjgsxdjs() {
        return sort(lookupManager.findAllByJbqkID(Jrjgsxdj.class, jbqk.getId()));

    }
}

